package com.dzjcloud.dzj.question.biz;

import cn.dev33.satoken.SaManager;
import cn.hutool.extra.spring.SpringUtil;
import com.dzjcloud.dzj.common.fegin.annotation.EnableDzjFegin;
import com.dzjcloud.dzj.common.redis.annotation.EnableDzjRedis;
import com.dzjcloud.dzj.common.swagger.annotation.EnableDzjSwagger2;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Import;

/**
 * <h3>dzj-cloud</h3>
 * <p>题库启动类</p>
 *
 * @author : DongZeJian
 * @date : 2021-04-30 16:50
 **/
@EnableDiscoveryClient
@SpringBootApplication
@Slf4j
@EnableDzjFegin   //开启openfeign支持
@EnableDzjSwagger2    //开启swagger
@EnableDzjRedis
@Import(SpringUtil.class)
@RefreshScope//开启热加载
public class DzjQuestionApplication {

    public static void main(String[] args) {
        log.info("--------------------------------题库系统开始启动----------------------------------------");
        SpringApplication.run(DzjQuestionApplication.class, args);
        log.info("--------------------------------题库系统启动完成----------------------------------------");
        log.info("启动成功：sa-token配置如下：{}", SaManager.getConfig());
    }
}
